package com.news.entity;

import java.util.List;

/**
 * @Author:weiming
 * @Date:2021/3/30
 */
public class CategoryParam {

    private Integer id;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 一级分类为0，二级分类为父类id
     */
    private Integer parentId;
    /**
     * 是否删除
     */
    private Integer isDeleted;

    private List<Category> childCategory;


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("CategoryParam{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", parentId=").append(parentId);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", childCategory=").append(childCategory);
        sb.append('}');
        return sb.toString();
    }

    public CategoryParam() {
    }

    public CategoryParam(Integer id, String name, Integer parentId, Integer isDeleted, List<Category> childCategory) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.isDeleted = isDeleted;
        this.childCategory = childCategory;
    }
    public List<Category> getChildCategory() {
        return childCategory;
    }

    public void setChildCategory(List<Category> childCategory) {
        this.childCategory = childCategory;
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
